package com.spj.service.impl;

import com.spj.dao.RoleDao;
import com.spj.entity.Role;
import com.spj.service.RoleServiceDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author :spj
 * @Date:2022/4/17
 * @description:
 */
@Service
public class RoleServiceDaoImpl implements RoleServiceDao {
    @Autowired
    RoleDao dao;
    @Override
    public Role findRoleByUserRoleId(int id) {
        return dao.selectRoleByUserRoleId(id);
    }

    @Override
    public List<Role> findtAllRoles() {
        return dao.selectAllRoles();
    }
}
